<template>
  <div>
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <div class="header">{{title}} <br /></div>
      </div>
      <div class="header1">基本信息</div>
      <el-form
        :model="ruleForm"
        ref="ruleForm"
        label-width="140px"
        class="demo-ruleForm"
      >
        <div class="flexClass">
          <!-- 填报人 -->
          <el-form-item class="inputForm" label="填报人" prop="name">
            <el-input v-model="ruleForm.name"></el-input>
          </el-form-item>
          <!--申报单位  -->
          <el-form-item class="inputForm" label="申报单位" prop="region">
            <el-select v-model="ruleForm.region" placeholder="请选择活动区域">
              <el-option label="区域一" value="shanghai"></el-option>
              <el-option label="区域二" value="beijing"></el-option>
            </el-select>
          </el-form-item>

          <!-- 所属会计期间 -->
          <el-form-item class="inputForm" label="所属会计期间" required>
            <el-col :span="3">
              <el-form-item prop="date1">
                <el-date-picker
                  v-model="ruleForm.date1"
                  type="date"
                  placeholder="选择日期"
                >
                </el-date-picker>
              </el-form-item>
            </el-col>
          </el-form-item>
        
            </el-col>
          </el-form-item>
        </div>
        <!-- 说明 -->
        <el-form-item :label="Instruction" prop="desc" class="jiaofeiCalss">
          <el-input type="textarea" v-model="ruleForm.desc"></el-input>
        </el-form-item>
      </el-form>
    </el-card>
    <!--  -->
  </div>
</template>
<script >
export default {
  props: {
    title: {
      type: String,
    },
    Instruction: {
      type: String,
      default: "说明",
    },
  },
  data() {
    return {
      ruleForm: {
        // 变量
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: "",
      },
    };
  },
};
</script>

<style scoped lang='scss'>
.DailyInfoFill_box {
  padding: 20px;
}
.flexClass {
  display: flex;
}
.header1 {
  margin-bottom: 20px;
  margin-left: 50px;
}
.header {
  color: #498ab8;
  margin-bottom: 20px;
}

.jiaofeiCalss {
  width: 60.8%;
}
// 表单input
.inputForm {
  margin-right: 10px;
}
</style>